public class Test {
    public static void main(String[] args) {
        Tree tree = new Tree();
        Tree.Node root = tree.creatTree();

        tree.preOrder(root);
        System.out.println();
        tree.inOrder(root);
        System.out.println();
        tree.postOrder(root);
        System.out.println();
        tree.size2(root);
        System.out.println(tree.size2(root));

        System.out.println(tree.getleafNodeCount(root));
    }
}
